package com.ruoyi.buss.dxts.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.dxts.mapper.MessagePohneMapper;
import com.ruoyi.buss.dxts.domain.MessagePohne;
import com.ruoyi.buss.dxts.service.IMessagePohneService;

/**
 * 短信发送手机号配置Service业务层处理
 * 
 * @author zjh
 * @date 2021-12-09
 */
@Service
public class MessagePohneServiceImpl implements IMessagePohneService 
{
    @Autowired
    private MessagePohneMapper messagePohneMapper;

    /**
     * 查询短信发送手机号配置
     * 
     * @param id 短信发送手机号配置ID
     * @return 短信发送手机号配置
     */
    @Override
    public MessagePohne selectMessagePohneById(String id)
    {
        return messagePohneMapper.selectMessagePohneById(id);
    }

    /**
     * 查询短信发送手机号配置列表
     * 
     * @param messagePohne 短信发送手机号配置
     * @return 短信发送手机号配置
     */
    @Override
    public List<MessagePohne> selectMessagePohneList(MessagePohne messagePohne)
    {
        return messagePohneMapper.selectMessagePohneList(messagePohne);
    }

    /**
     * 新增短信发送手机号配置
     * 
     * @param messagePohne 短信发送手机号配置
     * @return 结果
     */
    @Override
    public int insertMessagePohne(MessagePohne messagePohne)
    {
        return messagePohneMapper.insertMessagePohne(messagePohne);
    }

    /**
     * 修改短信发送手机号配置
     * 
     * @param messagePohne 短信发送手机号配置
     * @return 结果
     */
    @Override
    public int updateMessagePohne(MessagePohne messagePohne)
    {
        return messagePohneMapper.updateMessagePohne(messagePohne);
    }

    /**
     * 批量删除短信发送手机号配置
     * 
     * @param ids 需要删除的短信发送手机号配置ID
     * @return 结果
     */
    @Override
    public int deleteMessagePohneByIds(String[] ids)
    {
        return messagePohneMapper.deleteMessagePohneByIds(ids);
    }

    /**
     * 删除短信发送手机号配置信息
     * 
     * @param id 短信发送手机号配置ID
     * @return 结果
     */
    @Override
    public int deleteMessagePohneById(String id)
    {
        return messagePohneMapper.deleteMessagePohneById(id);
    }
}
